<?php
// 设置允许其他域名访问
header('Access-Control-Allow-Origin:*');
// 设置允许的响应类型 
header('Access-Control-Allow-Methods:POST, GET');
// 设置允许的响应头 
header('Access-Control-Allow-Headers:x-requested-with,content-type');
// 响应头表示是否可以将对请求的响应暴露给页面
header('Access-Control-Allow-Credentials: true');
$json = file_get_contents("php://input");
$arr = json_decode($json,true);
include "config.php";